<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<%@ taglib uri="http://jsptags.com/tags/navigation/pager" prefix="pg"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>业主欠费汇总查询</title>
<LINK href="images/css.css" type="text/css" rel="stylesheet">
</head>

<body>

  <table cellspacing="0" cellpadding="0" width="80%" border="0" align="center">
    <tr>
     <td colspan="12" class="STYLE4" align="center" bgcolor="#ffffff" colspan="2" height="40">业主欠费汇总显示(${year }年${month }月)</td>
     </tr>
    <tr>
      <td colspan="2" align="center" bgcolor="#ffffff">
      <table class="tableline" cellspacing="1" cellpadding="0" width="100%" border="0">
        <tr align="center">
          <td width="10%" height="25" bgcolor="#ffffff">所属小区</td>
          <td width="20%" bgcolor="#ffffff">业主姓名</td>
          <td width="10%" bgcolor="#ffffff">应缴金额</td>
          <td width="10%" bgcolor="#ffffff">实收金额</td>
          <td width="20%" bgcolor="#ffffff">所欠金额</td>
        </tr>
        <c:if test="${!empty pm.datas}">
				<c:forEach items="${pm.datas}" var="owe">
        <tr align="center">
          <td height="25" bgcolor="#ffffff">${owe.subName}</td>
          <td bgcolor="#ffffff">${owe.oweName}</td>
          <td bgcolor="#ffffff">${owe.amount}</td>
          <td bgcolor="#ffffff">${owe.paidAmount}</td>
          <td bgcolor="#ffffff"><fmt:formatNumber>${owe.amount-owe.paidAmount}</fmt:formatNumber></td>
        </tr>
        </c:forEach>
        </c:if>
        <tr>
        <td colspan="7" bgcolor="#ffffff">
        <center>
        <pg:pager url="queryOweCollectCharge.do" items="${pm.total }" export="currentPageNumber=pageNumber">
	<pg:first>
		<a href="${pageUrl }&distId=${distId }&subId=${subId }&year=${year }&month=${month }">首页</a>
	</pg:first>
	<pg:prev>
		<a href="${pageUrl }&distId=${distId }&subId=${subId }&year=${year }&month=${month }">上一页</a>
	</pg:prev>
	<pg:pages>
		<c:choose>
			<c:when test="${currentPageNumber eq pageNumber}">
				<font color="red">${pageNumber }</font>
			</c:when>
			<c:otherwise>
				<a href="${pageUrl }&distId=${distId }&subId=${subId }&year=${year }&month=${month }">${pageNumber }</a>
			</c:otherwise>
		</c:choose>
	</pg:pages>
	<pg:next>
		<a href="${pageUrl }&distId=${distId }&subId=${subId }&year=${year }&month=${month }">下一页</a>
	</pg:next>
	<pg:last>
		<a href="${pageUrl }&distId=${distId }&subId=${subId }&year=${year }&month=${month }">尾页</a>
	</pg:last>
</pg:pager>
</center>
        </td>
        </tr>
       
      </table>
      </td>
    </tr>
  <tr align="right">
		<td  bgcolor="#ffffff" align="right" colspan="2">
			<input
				type="button" value="导出Excel报表" style="color: green;"
				onclick="window.location.href='queryOweCollectCharge.do?method=doExportExcel'">
		</td>
	</tr>
	</table>
</body>
</html>